# from pydantic_settings import BaseSettings


# class Settings(BaseSettings):
#     database_url: str
#     secret_key: str
#     algorithm: str
#     access_token_expire_minutes: int

#     class Config:
#         env_file = ".env"
from pydantic_settings import BaseSettings, SettingsConfigDict


class Settings(BaseSettings):
    DATABASE_URL: str | None = None
    SECRET_KEY: str | None = None
    ALGORITHM: str | None = None
    ACCESS_TOKEN_EXPIRE_MINUTES: int | None = None

    model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")


settings = Settings()
print(settings)
